//
//  ActivityViewController.h
//  MapList
//
//  Created by Wu Chenhao on 6/3/12.
//  Copyright (c) 2012 MicroStrategy. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "RequestUtil.h"
#import "ActivityView.h"
@interface ActivityViewController : UITableViewController <UITableViewDelegate, UITableViewDataSource>
{
    NSMutableArray *activities;
    RequestUtil *requestUtil;
    
    BOOL isDragging;
    BOOL isLoading;
}
@property (nonatomic, retain) NSMutableArray *activities;
@property (nonatomic, retain) RequestUtil *requestUtil;

@property (strong, nonatomic) UIView *refreshHeaderView;
@property (strong, nonatomic) UILabel *refreshLabel;
@property (strong, nonatomic) UIImageView *refreshArrow;
@property (strong, nonatomic) UIActivityIndicatorView *refreshSpinner;
@property (retain, nonatomic) ActivityView *activityView;
@property (copy, nonatomic) NSString *textPull;
@property (copy, nonatomic) NSString *textRelease;
@property (copy, nonatomic) NSString *textLoading;

-(void)initActivities:(NSString*)limit createTime:(NSString*)createTime;
-(void)reloadActivities:(NSString*)limit createTime:(NSString*)createTime;


- (void) sortActivities;

- (void)wanchengButtonClicked;


- (void)addPullToRefreshHeader;
- (void)startLoading;
- (void)stopLoading;
- (void)refresh;

@end
